<!--{include file=acl/submenu}-->

<style type="text/css">
    html { _overflow-y:scroll; }
</style>

<form name="user" id="user" action="{$base_url}user/acl/user_add/id/{$result.id}" method="post">
<div class="pad-lr-10">
<div class="col-tab">

<ul class="tabBut cu-li">
    <li id="tab_setting_1" class="on" onclick="SwapTab('setting','on','',2,1);">基本选项</li>
    <li id="tab_setting_2" onclick="SwapTab('setting','on','',2,2);">群组选项</li>
</ul>

<div id="div_setting_1" class="contentList pad-10">
<table width="100%" class="table_form">

      <tr>
      <tr>
        <th width="80">登录名称：</th>
        <td><input type="text" name="username" id="username" size="26" class="input-text" value="{$result.username|default:""}"></td>
      </tr>

        <tr>
        <th>显示名称：</th>
        <td><input type="text" name="nickname" id="nickname" size="26" class="input-text" value="{$result.nickname|default:""}"></td>
        </tr>
</table>
</div>

<div id="div_setting_2" class="contentList pad-10 hidden">
<table width="100%" class="table_form">
      <tr>
        <td align='left' class="checkbox_group_list"><ul>
            <!--{foreach from=$groups key=k item=v}-->
                <li>
                <input type="checkbox" name="group_id[]" id="id" size="26" value="{$v.id}" {if in_array($v.id, $group_ids)}checked{/if} /> {$v.htmlLayer}{$v.title} [{$v.description}]
                </li>
            <!--{/foreach}-->
        </ul>
      </td>
    </tr>

</table>
</div>


<div class="bk15"></div>
<input name="id" type="hidden" value="{$result.id}">
<input name="dosubmit" type="submit" value="提交" class="button">

</form>

</div>

</div>
<!--table_form_off-->
</div>

<script type="text/javascript">
<!--
jQuery(function()
{
    jQuery.formValidator.initConfig({formid:"resource",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:'200',height:'50'}, function(){this.close();$(obj).focus();})}});
    
    jQuery("#username")
    .formValidator({ onshow:"请输入登录名称", onfocus:"请输入登录名称",oncorrect:"正确"})
    .inputValidator({min:1,onerror:"请输入登录名称"});

    jQuery("#nickname")
    .formValidator({ onshow:"请输入显示名称", onfocus:"请输入显示名称",oncorrect:"正确"})
    .inputValidator({min:1,onerror:"请输入显示名称"});
});
//-->
</script>

<script type="text/javascript" src="{$asset_url}js/jquery.formvalidator.js"></script>
<script type="text/javascript" src="{$asset_url}js/jquery.formvalidatorregex.js"></script>

